<?php

/**
 * Ajax 相关演示
 *
 * @author LuJun
 * $Id: Ajax.php 156 2012-11-08 01:37:15Z silverd30@gmail.com $
 */

class Controller_Sample_Ajax extends Controller_Abstract
{
    // http://xianglephp/_sample/ajax
    // http://xianglephp/_sample/ajax/index
    public function indexAction()
    {
        $this->display('sample/ajax');
    }

    // http://xianglephp/_sample/ajax/submit
    public function submitAction()
    {
        sleep(10);
        echo 'ajax submit ok';
    }
}

